<?php

namespace App\Http\Requests\Api;

use App\Http\Requests\BaseRequest;

class TestRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }


    /**
     * 校验 TestFirst 这个方法
     * @return string[]
     */
    public function TestFirstRules()
    {
        return [
            'title' => 'required',
        ];
    }


    public function messages()
    {
        return [
            'title.required' =>'请填写标题'
        ];
    }
}
